﻿using BCCServer.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCCServer.DAO.Interfaces
{
    public interface IchatDB
    {
        /// <summary>
        /// 根据账号查询聊天信息
        /// </summary>
        /// <param name="sendAccount"></param>
        /// <param name="receiveAccount"></param>
        /// <returns></returns>
        public List<UChatinfo> selChatinfo(string sendAccount, string receiveAccount);

        /// <summary>
        /// 添加聊天信息
        /// </summary>
        /// <param name="uChatinfo"></param>
        /// <returns></returns>
        public  int addChatinfo(UChatinfo uChatinfo);

        /// <summary>
        /// 根据账号查询好友
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        public List<UFriend> selFriendsinfo(string account);

        /// <summary>
        /// 根据账号查询未读消息
        /// </summary>
        /// <param name="sendAccount"></param>
        /// <returns></returns>
        public List<UChatinfo> selChatAllUnreadinfo(string receiveAccount);
    }
}
